<include file="Public/min-header"/>
<div class="wrapper">
  <include file="Public/breadcrumb"/>
    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i> 群信息</h3>
                    <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default pull-right"
                       data-original-title="返回"><i class="fa fa-reply"></i></a>
                </div>
                <div class="panel-body">
                    <table class="table table-bordered">
                        <tbody>
                            <tr>
                                <td>群ID:</td>
                                <td>群名称:</td>
                                <td>头像:</td>                                
                                <td>成员上限:</td>                                
                            </tr>
                            <tr>
                                <td>{$info.groupid}</td>
                                <td>{$info.name}</td>
                                <td>
                                    <img src="{$info.avatar}" height="80" width="80" />
                                </td>
                                <td>{$info.maxusers}</td>
                            </tr>
                            <tr>
                                <td>群主:</td>
                                <td>群人数:</td>
                                <td>群简介:</td>
                                <td>创建时间:</td>
                            </tr>
                            <tr>
                                <td>{$info.owner}</td>
                                <td>{$info.affiliations_count}</td>
                                <td>{$info.description}</td>
                                <td>{$info.create_time|date='Y-m-d H:i',###}</td>                                
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><i class="fa fa-list"></i> 群成员</h3>
                    </div>         
                    <div id="ajax_return">

                    </div>
                </div>
            </div>
        </div>        <!-- /.row -->
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script>

    $(document).ready(function(){
        ajax_get_table(1);
    });

     // ajax 抓取页面
    function ajax_get_table(page){
        cur_page = page; //当前页面 保存为全局变量
            $.ajax({
                type : "POST",
                url:"/index.php?s=/Admin/im/groupusers",
                data :{
                    groupid: '{$info.groupid}',
                    p: page
                },// 你的formid
                success: function(data){
                    $("#ajax_return").html('');
                    $("#ajax_return").append(data);
                }
            });
    }
</script>
</body>
</html>